<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
	<div class="table-responsive">
		<table class="table table-bordered table-hover" style="font-size:12px;">
			<thead>
				<tr>
					<td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);"></td>
					<td class="text-center">
						<a href="javascript:">订单编号</a>
					</td>
					<td class="text-center">
						<a href="">路线名</a>
					</td>

					<td class="text-center">
						<a href="javascript:">下单用户</a>
					</td>
					<td class="text-center">
						<a href="javascript:">总金额</a>
					</td>
					<td class="text-center">
						<a href="javascript:">总人数</a>
					</td>
					<td class="text-center">
						<a href="javascript:">总房间数</a>
					</td>
					<td class="text-center">
						<a href="javascript:">出发时间</a>
					</td>
					<td class="text-center">
						<a href="javascript:">订单状态</a>
					</td>

					<td class="text-center">
						<a href="javascript:sort('ordertime');">下单时间</a>
					</td>
					<td class="text-center">操作</td>
				</tr>
			</thead>
			<tbody>
				<volist name="orderList" id="list">
					<tr>
						<td class="text-center">
							<input type="checkbox" name="selected[]" value="6">
							<input type="hidden" name="shipping_code[]" value="flat.flat">
						</td>
						<td class="text-center">{$list.order_sn}</td>
						<td class="text-center">{$list.product_name}</td>

						<td class="text-center">{$user_list[$list['user_id']]}</td>
						<td class="text-center">{$list.price}</td>
						<td class="text-center">{$list.people_num}人</td>
						<td class="text-center">{$list.room_num}间</td>
						<td class="text-center">
							<?php echo date('Y-m-d H:i:s',$list['starttime']) ?>
						</td>
						<td class="text-center">已下单</td>
						<td class="text-center">
							<?php echo date('Y-m-d H:i:s',$list['ordertime']) ?>
						</td>

						<td class="text-center">
							<a href="{:U('Home/Product/details',array('id'=>$list['product_id']))}" target="_blank" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="查看详情"><i class="fa fa-eye"></i></a>

							<a href="{:U('Admin/order/delete_order',array('order_id'=>$list['order_id']))}" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>

						</td>
					</tr>
				</volist>
			</tbody>
		</table>
	</div>
</form>
<div class="row">
	<div class="col-sm-6 text-left"></div>
	<div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
	$(".pagination  a").click(function() {
		var page = $(this).data('p');
		ajax_get_table('search-form2', page);
	});
</script>